package com.example.myapplication.a_mvp.contract;

import com.example.mvp.mvp.model.IModel;
import com.example.mvp.mvp.view.IView;
import com.example.myapplication.b_entity.Login_Entity;
import com.example.myapplication.b_entity.Daxia;
import com.example.myapplication.b_entity.Reg_Entity;

import java.util.List;

import io.reactivex.Observer;

public interface MyContract {
    interface MyModel extends IModel{
        void reg(String name, String pass, Observer<Reg_Entity> observer);
        void login(String name, String pass, Observer<Login_Entity> observer);
        void daxia(int index,int index2,Observer<Daxia> observer);
    }
    interface MyView extends IView{
        void show_reg(Reg_Entity reg_entity);
        void show_login(Login_Entity login_entity);
        void show_daxia(List<Daxia.DataBean> list);
    }

}
